package com.qysxy.consumeruser.controller;

import com.qysxy.api.user.UserDto;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.qysxy.feign.service.user.IUserService;

/**
 * Created by SuLong on 2018/4/17/017 8:52.
 */
@RestController
public class IndexController {

    @Autowired
    private IUserService IUserService;

    @RequestMapping("/")
    public UserDto home() {
        return IUserService.home();
    }

    @RequestMapping("/order")
    public String order() {
        return  IUserService.order();
    }

    @RequestMapping("/result")
    public String result() {
        return IUserService.result();
    }
}
